<template>
	<xi-win v-model="show" title="任务详情" bgclose="true" zIndex="2000" appendToBody>
		<div class="task">
			<div class="conn">
				<xi-tab ref="xi_tab" :data="get_list" height="auto">
					<el-table-column label="序号" prop="num" width="100px"/>
					<el-table-column label="创建人" prop="openedBy_realname" width="100px"/>
					<el-table-column label="ID" prop="id" width="100px"/>
					<el-table-column label="标题" prop="name" />
					<el-table-column label="操作" width="180" fixed="right">
						<template slot-scope="{row}">
							<el-button class="mbut" size="mini" type="primary" plain @click="torenwu(row.id)">查看</el-button>
						</template>
					</el-table-column>
				</xi-tab>
			</div>
		</div>
	</xi-win>
</template>

<script>
export default {
	data(){
		return {
			xaoi,
			show:false,
			info:{},
			data:[],
		}
	},
	methods:{
		async init(d){
			this.ids = d;

			this.show = true;
			await new Promise(ok=>this.$nextTick(ok))

			this.$refs.xi_tab.up();
		},
		async get_list(query){
			var res = await this.$post('task/infos',{...query,ids:this.ids});

			console.log(res)

			return res;
		},
	},
}
</script>

<style lang="less" scoped>
.task{
	width:1000px;height:600px;
	display: flex;
	flex-flow: column;
	>.conn{
		flex:1;height:0;
		overflow: auto;
		padding:15px;
		display: flex;
		flex-flow: column;
	}
}
</style>